//
//@File    :	9.11_namsp.h
//@Time    :	2021/08/25 11:25:31
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	namesp.h
//


#include <string>

namespace pers
{
    struct Person
    {
        std::string fname;
        std::string lname;
    };
    void getPerson(Person &);
    void showPerson(const Person &);
} // namespace pers

namespace debts
{
    using namespace pers;
    struct Debt
    {
        Person name;
        double amount;
    };
    void getDebt(Debt &);
    void showDebt(const Debt &);
    double sumDebts(const Debt ar[],int n);
}